package com.dailyblue.project.smbms.alibaba.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dailyblue.project.smbms.alibaba.commons.bean.User;
import com.dailyblue.project.smbms.alibaba.commons.util.JsonResult;

import javax.servlet.http.HttpServletRequest;

public interface UserService extends IService<User> {
    JsonResult find(int page);

    JsonResult delete(int id, int page);

    JsonResult findById(int id);

    JsonResult findByName(String name, int page);

    JsonResult saveUser(User user, int lastPage, int total);

    JsonResult checkPhone(String phone);

    JsonResult checkCode(String code);

    JsonResult findUserById(int id);

    JsonResult updateUser(User user);

    JsonResult updateUserPassword(int id,String password);

    JsonResult oldPass(HttpServletRequest request,String oldPass);
}
